<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ClaraGenomicsAnalysis: claragenomics::Graph Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ClaraGenomicsAnalysis
   &#160;<span id="projectnumber">0.4.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>claragenomics</b></li><li class="navelem"><a class="el" href="classclaragenomics_1_1Graph.html">Graph</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classclaragenomics_1_1Graph-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">claragenomics::Graph Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Object representing a generic graph structure.  
 <a href="classclaragenomics_1_1Graph.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="graph_8hpp_source.html">graph.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for claragenomics::Graph:</div>
<div class="dyncontent">
<div class="center"><img src="classclaragenomics_1_1Graph__inherit__graph.png" border="0" usemap="#claragenomics_1_1Graph_inherit__map" alt="Inheritance graph"/></div>
<map name="claragenomics_1_1Graph_inherit__map" id="claragenomics_1_1Graph_inherit__map">
<area shape="rect" title="Object representing a generic graph structure." alt="" coords="135,5,285,32"/>
<area shape="rect" href="classclaragenomics_1_1DirectedGraph.html" title="DirectedGraph Object representing a directed graph structure." alt="" coords="5,87,204,114"/>
<area shape="rect" href="classclaragenomics_1_1UndirectedGraph.html" title="UndirectedGraph Object representing an undirected graph structure." alt="" coords="228,80,405,121"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a0f9734799fc19b94b0621c956ce5508d"><td class="memItemLeft" align="right" valign="top"><a id="a0f9734799fc19b94b0621c956ce5508d"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> = int32_t</td></tr>
<tr class="memdesc:a0f9734799fc19b94b0621c956ce5508d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Typedef for node ID. <br /></td></tr>
<tr class="separator:a0f9734799fc19b94b0621c956ce5508d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5388bf7676b6e35a6e62c034e2993b5"><td class="memItemLeft" align="right" valign="top"><a id="ad5388bf7676b6e35a6e62c034e2993b5"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a> = int32_t</td></tr>
<tr class="memdesc:ad5388bf7676b6e35a6e62c034e2993b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tpyedef for edge weight. <br /></td></tr>
<tr class="separator:ad5388bf7676b6e35a6e62c034e2993b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3892123fce03f805e54ce0076e6b68dc"><td class="memItemLeft" align="right" valign="top"><a id="a3892123fce03f805e54ce0076e6b68dc"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a> = std::pair&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>, <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt;</td></tr>
<tr class="memdesc:a3892123fce03f805e54ce0076e6b68dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Typedef for edge. <br /></td></tr>
<tr class="separator:a3892123fce03f805e54ce0076e6b68dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab52b2707de415931f1990ee338b29eeb"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#ab52b2707de415931f1990ee338b29eeb">get_adjacent_nodes</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> node) const</td></tr>
<tr class="memdesc:ab52b2707de415931f1990ee338b29eeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a list of adjacent nodes to a given node.  <a href="classclaragenomics_1_1Graph.html#ab52b2707de415931f1990ee338b29eeb">More...</a><br /></td></tr>
<tr class="separator:ab52b2707de415931f1990ee338b29eeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b51bca4b58c9922b375c983415ec0c8"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a1b51bca4b58c9922b375c983415ec0c8">get_node_ids</a> () const</td></tr>
<tr class="memdesc:a1b51bca4b58c9922b375c983415ec0c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">List all node IDs in the graph.  <a href="classclaragenomics_1_1Graph.html#a1b51bca4b58c9922b375c983415ec0c8">More...</a><br /></td></tr>
<tr class="separator:a1b51bca4b58c9922b375c983415ec0c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac96335c01273c0dd74d2628e7bf38794"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::pair&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a>, <a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#ac96335c01273c0dd74d2628e7bf38794">get_edges</a> () const</td></tr>
<tr class="memdesc:ac96335c01273c0dd74d2628e7bf38794"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a list of all edges in the graph.  <a href="classclaragenomics_1_1Graph.html#ac96335c01273c0dd74d2628e7bf38794">More...</a><br /></td></tr>
<tr class="separator:ac96335c01273c0dd74d2628e7bf38794"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9861d50dbee863befed15eb8daacff3d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a9861d50dbee863befed15eb8daacff3d">set_node_label</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> node, const std::string &amp;label)</td></tr>
<tr class="memdesc:a9861d50dbee863befed15eb8daacff3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add string labels to a node ID.  <a href="classclaragenomics_1_1Graph.html#a9861d50dbee863befed15eb8daacff3d">More...</a><br /></td></tr>
<tr class="separator:a9861d50dbee863befed15eb8daacff3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47bd2f14a355fbbd801846b0af305389"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a47bd2f14a355fbbd801846b0af305389">get_node_label</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> node) const</td></tr>
<tr class="memdesc:a47bd2f14a355fbbd801846b0af305389"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the label associated with a node.  <a href="classclaragenomics_1_1Graph.html#a47bd2f14a355fbbd801846b0af305389">More...</a><br /></td></tr>
<tr class="separator:a47bd2f14a355fbbd801846b0af305389"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a1df5a4be1fc2f71130436e9f718e85ac"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a1df5a4be1fc2f71130436e9f718e85ac">directed_edge_exists</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a> edge)</td></tr>
<tr class="memdesc:a1df5a4be1fc2f71130436e9f718e85ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a directed edge exists in the grph.  <a href="classclaragenomics_1_1Graph.html#a1df5a4be1fc2f71130436e9f718e85ac">More...</a><br /></td></tr>
<tr class="separator:a1df5a4be1fc2f71130436e9f718e85ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0043ec8f35f7491c06915c887d31ea77"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a0043ec8f35f7491c06915c887d31ea77">update_adject_nodes</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a> edge)</td></tr>
<tr class="memdesc:a0043ec8f35f7491c06915c887d31ea77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the adjacent nodes based on edge information.  <a href="classclaragenomics_1_1Graph.html#a0043ec8f35f7491c06915c887d31ea77">More...</a><br /></td></tr>
<tr class="separator:a0043ec8f35f7491c06915c887d31ea77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95ef438f6035c2240bf277645ad27cb9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a95ef438f6035c2240bf277645ad27cb9">node_labels_to_dot</a> (std::ostringstream &amp;dot_str) const</td></tr>
<tr class="memdesc:a95ef438f6035c2240bf277645ad27cb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialize node labels to dot format.  <a href="classclaragenomics_1_1Graph.html#a95ef438f6035c2240bf277645ad27cb9">More...</a><br /></td></tr>
<tr class="separator:a95ef438f6035c2240bf277645ad27cb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88dda0ee0cffa26a188a041593d2fcd5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a88dda0ee0cffa26a188a041593d2fcd5">edges_to_dot</a> (std::ostringstream &amp;dot_str, const std::string &amp;node_separator) const</td></tr>
<tr class="memdesc:a88dda0ee0cffa26a188a041593d2fcd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialize edges to dot format.  <a href="classclaragenomics_1_1Graph.html#a88dda0ee0cffa26a188a041593d2fcd5">More...</a><br /></td></tr>
<tr class="separator:a88dda0ee0cffa26a188a041593d2fcd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a8b53264154b5caed266385a007e33404"><td class="memItemLeft" align="right" valign="top"><a id="a8b53264154b5caed266385a007e33404"></a>
std::unordered_map&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>, std::vector&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a8b53264154b5caed266385a007e33404">adjacent_nodes_</a></td></tr>
<tr class="memdesc:a8b53264154b5caed266385a007e33404"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of adjacent nodes per node ID. <br /></td></tr>
<tr class="separator:a8b53264154b5caed266385a007e33404"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4089c636086324cae1f2a2bde56c8b33"><td class="memItemLeft" align="right" valign="top"><a id="a4089c636086324cae1f2a2bde56c8b33"></a>
std::unordered_map&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a>, <a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a>, <a class="el" href="structclaragenomics_1_1PairHash.html">PairHash</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a4089c636086324cae1f2a2bde56c8b33">edges_</a></td></tr>
<tr class="memdesc:a4089c636086324cae1f2a2bde56c8b33"><td class="mdescLeft">&#160;</td><td class="mdescRight">All edges in the graph. <br /></td></tr>
<tr class="separator:a4089c636086324cae1f2a2bde56c8b33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5da2769d7e5bebd1d74c4899e3aad2c5"><td class="memItemLeft" align="right" valign="top"><a id="a5da2769d7e5bebd1d74c4899e3aad2c5"></a>
std::unordered_map&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>, std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a5da2769d7e5bebd1d74c4899e3aad2c5">node_labels_</a></td></tr>
<tr class="memdesc:a5da2769d7e5bebd1d74c4899e3aad2c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Label per node. <br /></td></tr>
<tr class="separator:a5da2769d7e5bebd1d74c4899e3aad2c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada271fc17a3a6e86f5dcc78c4caa729c"><td class="memItemLeft" align="right" valign="top"><a id="ada271fc17a3a6e86f5dcc78c4caa729c"></a>
const std::vector&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#ada271fc17a3a6e86f5dcc78c4caa729c">empty_</a></td></tr>
<tr class="memdesc:ada271fc17a3a6e86f5dcc78c4caa729c"><td class="mdescLeft">&#160;</td><td class="mdescRight">An empty list representing no connectivity. <br /></td></tr>
<tr class="separator:ada271fc17a3a6e86f5dcc78c4caa729c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Object representing a generic graph structure. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a1df5a4be1fc2f71130436e9f718e85ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1df5a4be1fc2f71130436e9f718e85ac">&#9670;&nbsp;</a></span>directed_edge_exists()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool claragenomics::Graph::directed_edge_exists </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a>&#160;</td>
          <td class="paramname"><em>edge</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if a directed edge exists in the grph. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">edge</td><td>A directed edge </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Boolean result of check </dd></dl>

</div>
</div>
<a id="a88dda0ee0cffa26a188a041593d2fcd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88dda0ee0cffa26a188a041593d2fcd5">&#9670;&nbsp;</a></span>edges_to_dot()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void claragenomics::Graph::edges_to_dot </td>
          <td>(</td>
          <td class="paramtype">std::ostringstream &amp;&#160;</td>
          <td class="paramname"><em>dot_str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>node_separator</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Serialize edges to dot format. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dot_str</td><td>Output string stream to serialize labels to </td></tr>
    <tr><td class="paramname">node_separator</td><td>DOT delimiter for edge description </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab52b2707de415931f1990ee338b29eeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab52b2707de415931f1990ee338b29eeb">&#9670;&nbsp;</a></span>get_adjacent_nodes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>&gt;&amp; claragenomics::Graph::get_adjacent_nodes </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get a list of adjacent nodes to a given node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">node</td><td>Node for which adjacent nodes are requested </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Vector of adjacent node IDs </dd></dl>

</div>
</div>
<a id="ac96335c01273c0dd74d2628e7bf38794"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac96335c01273c0dd74d2628e7bf38794">&#9670;&nbsp;</a></span>get_edges()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;std::pair&lt;<a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a>, <a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a>&gt; &gt; claragenomics::Graph::get_edges </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get a list of all edges in the graph. </p>
<dl class="section return"><dt>Returns</dt><dd>A vector of edges </dd></dl>

</div>
</div>
<a id="a1b51bca4b58c9922b375c983415ec0c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b51bca4b58c9922b375c983415ec0c8">&#9670;&nbsp;</a></span>get_node_ids()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>&gt; claragenomics::Graph::get_node_ids </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>List all node IDs in the graph. </p>
<dl class="section return"><dt>Returns</dt><dd>A vector of node IDs </dd></dl>

</div>
</div>
<a id="a47bd2f14a355fbbd801846b0af305389"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47bd2f14a355fbbd801846b0af305389">&#9670;&nbsp;</a></span>get_node_label()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string claragenomics::Graph::get_node_label </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the label associated with a node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">node</td><td>node ID for label query </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>String label for associated node. Returns empty string if </dd></dl>

</div>
</div>
<a id="a95ef438f6035c2240bf277645ad27cb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95ef438f6035c2240bf277645ad27cb9">&#9670;&nbsp;</a></span>node_labels_to_dot()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void claragenomics::Graph::node_labels_to_dot </td>
          <td>(</td>
          <td class="paramtype">std::ostringstream &amp;&#160;</td>
          <td class="paramname"><em>dot_str</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Serialize node labels to dot format. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dot_str</td><td>Output string stream to serialize labels to </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9861d50dbee863befed15eb8daacff3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9861d50dbee863befed15eb8daacff3d">&#9670;&nbsp;</a></span>set_node_label()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void claragenomics::Graph::set_node_label </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>label</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add string labels to a node ID. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">node</td><td>ID of node </td></tr>
    <tr><td class="paramname">label</td><td>Label to attach to that node ID </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0043ec8f35f7491c06915c887d31ea77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0043ec8f35f7491c06915c887d31ea77">&#9670;&nbsp;</a></span>update_adject_nodes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void claragenomics::Graph::update_adject_nodes </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a>&#160;</td>
          <td class="paramname"><em>edge</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Update the adjacent nodes based on edge information. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">edge</td><td>A directed edge </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>common/utils/include/claragenomics/utils/<a class="el" href="graph_8hpp_source.html">graph.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
